package com.example.doctor.jpa;

import java.util.List;

import com.example.common.entity.HospitalConfig;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface HospitalConfigRepository extends JpaRepository<HospitalConfig, Long> {
    @Query(value = "select  * from h_hospital_config order by ID_bigint desc limit 0, 1",nativeQuery = true)
    HospitalConfig findByLast();
}